import time

import GetBaiduAudio

with open("语音表.txt", "r", encoding="utf-8") as ContextList:
    contexts = ContextList.readlines()
    for context in contexts:
        Fname = "语音包\\" + context[:-1] + ".mp3"
        GetBaiduAudio.getBaiduAudio(Fname, context)
        time.sleep(0.5)
